﻿<!DOCTYPE HTML>
<html lang="en-US">
<head>
<title>注册</title>
 <meta http-equiv="Content-Type" content="text/html"; charset="UTF-8" />
<link type="text/css" href="themes/css/v3/reset.css" rel="stylesheet">
<link type="text/css" href="themes/css/v3/public.css" rel="stylesheet">
<link type="text/css" href="themes/css/v3/register.css" rel="stylesheet">
<link type="text/css" href="themes/css/v3/Validform.css" rel="stylesheet">
<script src="themes/js/jquery.min.js" type="text/javascript"></script>
<script src="themes/js/categories.js" type="text/javascript"></script>
<script src="themes/js/jquery.form.js" type="text/javascript"></script>
<script src="themes/js/json.parse.js" type="text/javascript"></script>

<script type="text/javascript" src="http://validform.rjboy.cn/wp-content/themes/validform/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://validform.rjboy.cn/Validform/v5.1/Validform_v5.1_min.js"></script>
<script src="themes/js/area.js" type="text/javascript"></script>
<script>
$(function() {
		$("#myForm").submit(function() {
			return queding('是否保存？', ".subCheck");
		})
		$("[name=first]").change(function(){
			var cid = $(this).val();
			var url = 'register.php?action=getCategory';
			if(cid){
				$.post(
					url,
					{cid:cid},
					function(data){
						if(data.error == '0'){
							$("[name=second]").html(data.html);
						}
					},'json'
					)
			}
		})
		})
</script>	
<style>
.input_div span{ background:#FFF;}
</style>
<!--[if IE 6]>
<script src="themes/js/DD_belatedPNG.js"  type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png_bg');</script>
<![endif]-->
</head>
<body onload="setup();preselect('陕西省');promptinfo();">
	<div id="header">
		<div class="header">
			<h2 style="font-size:24px; text-align:center">商家注册</h2>
		
			<a class="png_bg" href="">返回主页</a>
		</div>
	</div>
	
	<div class="register_content">
	
		<ul class="step_ul step1 clear">
			<li class="li1">01、填写资料</li>
			<li class="li2">02、完成注册</li>
		</ul>
		
		 <form action="" method="post"  id='myForm' style="padding:60px 40px 88px 40px;font-family:Microsoft Yahei"  enctype="multipart/form-data">
			<div class="div_form clear ">
				<label>公司名称：</label>
				<div class="input_div input_div1">
					<input id="companyName" name="companyName" type="text" datatype="*" nullmsg="公司名称不能为空" ajaxurl="valid/email.php">
					<span class="Validform_checktip">请输入公司名称</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>管理账号：</label>
				<div class="input_div input_div1">
					<input id="adminName" name="adminName" type="text" datatype="s6-18" nullmsg="帐号不能为空" errormsg="昵称至少6个字符,最多18个字符！" ajaxurl="valid/valid.php">
					<span class="Validform_checktip">请输入管理账号</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>登录密码：</label>
				<div class="input_div input_div3">
					<input id="password1" name="userpass" type="password" datatype="*6-16" nullmsg="密码不能为空" errormsg="密码范围在6~16位之间！">
					<span class="Validform_checktip">请输入密码</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>确认密码：</label>
				<div class="input_div input_div4">
					<input id="password2" name="userpass2" type="password" datatype="*" recheck="userpass" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！">
					<span class="Validform_checktip">请再输入一次密码</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>公司正面照片：</label>
				<div class="">
					<input style="position:absolute;top:425px" name="img" type="file" datatype="*" nullmsg="公司正面照不能为空">
					<span style="position:absolute; top:450px" class="Validform_checktip">请上传公司正面照片</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>营业执照照片：</label>
				<div class="">
					<input style="position:absolute; top:497px" name="businesslicense" type="file" datatype="*" nullmsg="营业执照照片不能为空">
					<span style="position:absolute; top:520px" class="Validform_checktip">请上传营业执照照片</span>
				</div>
			</div>
			<div class="div_form clear ">
				<label>法人照片：</label>
				<div class="">
					<input style="position:absolute; top:570px" name="legalperson" type="file" datatype="*" nullmsg="法人照片不能为空" >
					<span style="position:absolute; top:590px" class="Validform_checktip">请上传法人照片</span>
				</div>
			</div>
			<!--<div class="div_form clear ">
                <label>行业分类：</label>
				<div style="position:relative; top:15px;"> 
				
					<select class="firstCate" name="firstCate" id="firstCate">
					<{foreach item=row from=$res}>					
					  <option><{$row.title}></option>
					<{/foreach}>					  
					</select>
									
					<select class="secondCate" name="secondCate" id="secondCate">  
					  <option></option>  
					</select>  
				 </div>
			</div>-->
			<div class="div_form clear ">
                <label>所属行业：</label>
					  <div style="position:relative; top:15px;"> 
				<select datatype="*" class="select" name="first" class="subCheck"> 
                 <{foreach item=list from=$ress}>				
				  <option value="<{$list.id}>"><{$list.title}></option>  
				 <{/foreach}>
				</select>  
		
				<select datatype="*" class="select" name="second" class="subCheck">  
				  <option value="">--请选择--</option>  
				</select>  
				  </div>
			</div>
			<div class="div_form clear ">
                <label>住址选择：</label>
					  <div style="position:relative; top:15px;"> 
				<select class="select" name="province" id="s1">  
				  <option></option>  
				</select>  
				<select class="select" name="city" id="s2">  
				  <option></option>  
				</select>  
				<select class="select" name="town" id="s3">  
				  <option></option>  
				</select>  
				  </div>
			</div>
			<div class="div_form clear ">
				<label>手机号码：</label>
				<div class="input_div input_div4">
					<input id="mobile" name="mobile" type="text" size="25" class="inputBg" datatype="m" nullmsg="手机号码不能为空"  errormsg="手机号格式不正确"/><span style="color:#FF0000"> *</span> 
                    <input id="zphone" style="height:40px;background:#fff" datatype="*" type="button" value=" 获取手机验证码 " onClick="get_mobile_code()"/>
					<span></span>
				</div>


			</div>
			<div class="div_form clear ">
				<label>手机验证码：</label>
				<div class="input_div input_div4">
					<input style="height:40px;" type="text" size="8" datatype="*" ajaxurl="valid/code.php" name="mobile_code" class="inputBg" nullmsg="验证码不能为空"  errormsg="验证码不正确" />
					<span class="Validform_checktip">请输入验证码</span>
				</div>
			</div>
			<div class="div_form clear">
				<label></label>
				<div>
					<input id="read" name="read"  type="checkbox" value=""/>我已阅读并接受《用户服务协议》
                    <span></span>
				</div>
			</div>
            
			<div class="div_form clear">
				<label></label>
				<div class="input_div">
					<input id="btn" onclick="clickBtn()" class="btn" name="submit" type="submit" value="注册"/>
				</div>
			</div>
			
		</form>
		
		<div class="reg_login">
			<p>已有帐号？</p>
			<a class="btn2"  href="business/login.php">登录</a>
		</div>
		<div class="bg"></div>
	</div>
	<!-- footer start -->

<script language="javascript">
	function check(){
				if(!document.getElementById("read").checked){alert("你必须同意协议");return false}
				return true
			}
	function get_mobile_code(){
        $.post('message.php', {mobile:jQuery.trim($('#mobile').val()),send_code:<{$code}>}, function(msg) {
            //alert(jQuery.trim(unescape(msg)));
			if(document.getElementById('mobile').value!=''){
				if(msg!=''){
					RemainTime();
				}
			}else{
			alert('手机号码不能为空!');
			}
        });
	};
	var iTime = 59;
	var Account;
	function RemainTime(){
		document.getElementById('zphone').disabled = true;
		var iSecond,sSecond="",sTime="";
		if (iTime >= 0){
			iSecond = parseInt(iTime%60);
			iMinute = parseInt(iTime/60);
			if (iSecond >= 0){
				if(iMinute>0){
					sSecond = iMinute + "分" + iSecond + "秒";
				}else{
					sSecond = iSecond + "秒";
				}
			}
			sTime=sSecond;
			if(iTime==0){
				clearTimeout(Account);
				sTime='获取手机验证码';
				iTime = 59;
				document.getElementById('zphone').disabled = false;
			}else{
				Account = setTimeout("RemainTime()",1000);
				iTime=iTime-1;
			}
		}else{
			sTime='没有倒计时';
		}
		document.getElementById('zphone').value = sTime;
	}	
</script>

<script type="text/javascript">
$(function(){
	$("#myForm").Validform({
		tiptype:function(msg,o,cssctl){
			if(!o.obj.is("form")){
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		}
	});

})



</script>
<script type="text/javascript">
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5d12e2b4eed3b554ae941c0ac43c330a' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- footer end -->
</body>
</html>















